import { ui } from "../../ui/layaMaxUI";
import GameInfo from "../../model/GameInfo";
import { GameStatusEnum } from "../../model/Enums";



export default class GameOverView extends ui.scenes.GameOver.GameOverViewUI {
    constructor() {
        super();
    }


    onEnable() {
        this.txtRestart.on(Laya.Event.CLICK, this, () => {
            GameInfo.instance.gameStatus = GameStatusEnum.Gaming;
            this.removeSelf();
        })
    }
    
    onDisable() {
        this.txtRestart.offAll();
    }
}